package com.changzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.changzhi.ldyl.model.InviteCoinLog;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 邀请获取友情币记录日志 Mapper 接口
 * </p>
 *
 * @author huangrc
 * @since 2021-07-15
 */
public interface InviteCoinLogMapper extends BaseMapper<InviteCoinLog> {

	Integer selectSum(@Param("inviteId") Integer inviteId,@Param("userId")  String userId);

	Integer selectSumComputeDiamond(@Param("inviteId") Integer inviteId,@Param("userId")  String userId,@Param("targetId")  String targetId,@Param("type")  Integer type);
}
